//用户列表请求
import request from "@/utils/request";

export type DeleteRequest = {
  id: number
}

export type ListRequest = {
  page: number,
  size: number,
  name?: string//用户名称
  mobile?: string//手机号码
}

//添加用户、修改用户
export type User = {
  id?: number,
  name: string,//用户名称
  department_id?: number,//部门id //?:排除值为0时，下拉菜单显示0
  department_name: string,//部门名称
  roles_id: number[],//角色id
  mobile: string,//手机号码
  status: number,//状态：0.禁用，10.启用
  remark: string, //备注
  created_at: number,
  updated_at: number,
}

//重置密码
export type ResetPasswordRequest = {
  id: number,
  password: string
}

//状态请求
export type UserStatusRequest = {
  id: number,
  status: number
}

